"""add ApprovedSchedule model

Revision ID: 0c81bfdc865d
Revises: ab9cfa002883
Create Date: 2024-06-23 11:51:51.083898

"""
from typing import Sequence, Union

from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision: str = '0c81bfdc865d'
down_revision: Union[str, None] = 'ab9cfa002883'
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table('approved_schedule',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('name', sa.String(), nullable=False),
    sa.PrimaryKeyConstraint('id'),
    sa.UniqueConstraint('name')
    )
    op.create_index(op.f('ix_approved_schedule_id'), 'approved_schedule', ['id'], unique=False)
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f('ix_approved_schedule_id'), table_name='approved_schedule')
    op.drop_table('approved_schedule')
    # ### end Alembic commands ###
